3.172 \(\int x^3 (d+e x^2) (a+b \log (c x^n)) \, dx\)

Optimal. Leaf size=48 \[ \frac{1}{12} \left (3 d x^4+2 e x^6\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{16} b d n x^4-\frac{1}{36} b e n x^6 \]

[Out]

-(b*d*n*x^4)/16 - (b*e*n*x^6)/36 + ((3*d*x^4 + 2*e*x^6)*(a + b*Log[c*x^n]))/12

________________________________________________________________________________________

Rubi [A]  time = 0.0415739, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {14, 2334} \[ \frac{1}{12} \left (3 d x^4+2 e x^6\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{16} b d n x^4-\frac{1}{36} b e n x^6 \]

Antiderivative was successfully verified.

[In]

Int[x^3*(d + e*x^2)*(a + b*Log[c*x^n]),x]

[Out]

-(b*d*n*x^4)/16 - (b*e*n*x^6)/36 + ((3*d*x^4 + 2*e*x^6)*(a + b*Log[c*x^n]))/12

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = I
ntHide[x^m*(d + e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]
] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] &&  !(EqQ[q, 1] && EqQ[m, -1])

Rubi steps

\begin{align*} \int x^3 \left (d+e x^2\right ) \left (a+b \log \left (c x^n\right )\right ) \, dx &=\frac{1}{12} \left (3 d x^4+2 e x^6\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (\frac{d x^3}{4}+\frac{e x^5}{6}\right ) \, dx\\ &=-\frac{1}{16} b d n x^4-\frac{1}{36} b e n x^6+\frac{1}{12} \left (3 d x^4+2 e x^6\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end{align*}

Mathematica [A]  time = 0.0022954, size = 69, normalized size = 1.44 \[ \frac{1}{4} a d x^4+\frac{1}{6} a e x^6+\frac{1}{4} b d x^4 \log \left (c x^n\right )+\frac{1}{6} b e x^6 \log \left (c x^n\right )-\frac{1}{16} b d n x^4-\frac{1}{36} b e n x^6 \]

Antiderivative was successfully verified.

[In]

Integrate[x^3*(d + e*x^2)*(a + b*Log[c*x^n]),x]

[Out]

(a*d*x^4)/4 - (b*d*n*x^4)/16 + (a*e*x^6)/6 - (b*e*n*x^6)/36 + (b*d*x^4*Log[c*x^n])/4 + (b*e*x^6*Log[c*x^n])/6

________________________________________________________________________________________

Maple [C]  time = 0.317, size = 266, normalized size = 5.5 \begin{align*}{\frac{b{x}^{4} \left ( 2\,e{x}^{2}+3\,d \right ) \ln \left ({x}^{n} \right ) }{12}}+{\frac{i}{12}}\pi \,be{x}^{6}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-{\frac{i}{12}}\pi \,be{x}^{6}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -{\frac{i}{12}}\pi \,be{x}^{6} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+{\frac{i}{12}}\pi \,be{x}^{6} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +{\frac{\ln \left ( c \right ) be{x}^{6}}{6}}-{\frac{ben{x}^{6}}{36}}+{\frac{ae{x}^{6}}{6}}+{\frac{i}{8}}\pi \,bd{x}^{4}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-{\frac{i}{8}}\pi \,bd{x}^{4}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -{\frac{i}{8}}\pi \,bd{x}^{4} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+{\frac{i}{8}}\pi \,bd{x}^{4} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +{\frac{\ln \left ( c \right ) bd{x}^{4}}{4}}-{\frac{bdn{x}^{4}}{16}}+{\frac{ad{x}^{4}}{4}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^3*(e*x^2+d)*(a+b*ln(c*x^n)),x)

[Out]

1/12*b*x^4*(2*e*x^2+3*d)*ln(x^n)+1/12*I*Pi*b*e*x^6*csgn(I*x^n)*csgn(I*c*x^n)^2-1/12*I*Pi*b*e*x^6*csgn(I*x^n)*c
sgn(I*c*x^n)*csgn(I*c)-1/12*I*Pi*b*e*x^6*csgn(I*c*x^n)^3+1/12*I*Pi*b*e*x^6*csgn(I*c*x^n)^2*csgn(I*c)+1/6*ln(c)
*b*e*x^6-1/36*b*e*n*x^6+1/6*a*e*x^6+1/8*I*Pi*b*d*x^4*csgn(I*x^n)*csgn(I*c*x^n)^2-1/8*I*Pi*b*d*x^4*csgn(I*x^n)*
csgn(I*c*x^n)*csgn(I*c)-1/8*I*Pi*b*d*x^4*csgn(I*c*x^n)^3+1/8*I*Pi*b*d*x^4*csgn(I*c*x^n)^2*csgn(I*c)+1/4*ln(c)*
b*d*x^4-1/16*b*d*n*x^4+1/4*a*d*x^4

________________________________________________________________________________________

Maxima [A]  time = 1.13715, size = 77, normalized size = 1.6 \begin{align*} -\frac{1}{36} \, b e n x^{6} + \frac{1}{6} \, b e x^{6} \log \left (c x^{n}\right ) + \frac{1}{6} \, a e x^{6} - \frac{1}{16} \, b d n x^{4} + \frac{1}{4} \, b d x^{4} \log \left (c x^{n}\right ) + \frac{1}{4} \, a d x^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(e*x^2+d)*(a+b*log(c*x^n)),x, algorithm="maxima")

[Out]

-1/36*b*e*n*x^6 + 1/6*b*e*x^6*log(c*x^n) + 1/6*a*e*x^6 - 1/16*b*d*n*x^4 + 1/4*b*d*x^4*log(c*x^n) + 1/4*a*d*x^4

________________________________________________________________________________________

Fricas [A]  time = 1.29095, size = 181, normalized size = 3.77 \begin{align*} -\frac{1}{36} \,{\left (b e n - 6 \, a e\right )} x^{6} - \frac{1}{16} \,{\left (b d n - 4 \, a d\right )} x^{4} + \frac{1}{12} \,{\left (2 \, b e x^{6} + 3 \, b d x^{4}\right )} \log \left (c\right ) + \frac{1}{12} \,{\left (2 \, b e n x^{6} + 3 \, b d n x^{4}\right )} \log \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(e*x^2+d)*(a+b*log(c*x^n)),x, algorithm="fricas")

[Out]

-1/36*(b*e*n - 6*a*e)*x^6 - 1/16*(b*d*n - 4*a*d)*x^4 + 1/12*(2*b*e*x^6 + 3*b*d*x^4)*log(c) + 1/12*(2*b*e*n*x^6
 + 3*b*d*n*x^4)*log(x)

________________________________________________________________________________________

Sympy [B]  time = 5.29384, size = 87, normalized size = 1.81 \begin{align*} \frac{a d x^{4}}{4} + \frac{a e x^{6}}{6} + \frac{b d n x^{4} \log{\left (x \right )}}{4} - \frac{b d n x^{4}}{16} + \frac{b d x^{4} \log{\left (c \right )}}{4} + \frac{b e n x^{6} \log{\left (x \right )}}{6} - \frac{b e n x^{6}}{36} + \frac{b e x^{6} \log{\left (c \right )}}{6} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**3*(e*x**2+d)*(a+b*ln(c*x**n)),x)

[Out]

a*d*x**4/4 + a*e*x**6/6 + b*d*n*x**4*log(x)/4 - b*d*n*x**4/16 + b*d*x**4*log(c)/4 + b*e*n*x**6*log(x)/6 - b*e*
n*x**6/36 + b*e*x**6*log(c)/6

________________________________________________________________________________________

Giac [A]  time = 1.24119, size = 99, normalized size = 2.06 \begin{align*} \frac{1}{6} \, b n x^{6} e \log \left (x\right ) - \frac{1}{36} \, b n x^{6} e + \frac{1}{6} \, b x^{6} e \log \left (c\right ) + \frac{1}{6} \, a x^{6} e + \frac{1}{4} \, b d n x^{4} \log \left (x\right ) - \frac{1}{16} \, b d n x^{4} + \frac{1}{4} \, b d x^{4} \log \left (c\right ) + \frac{1}{4} \, a d x^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(e*x^2+d)*(a+b*log(c*x^n)),x, algorithm="giac")

[Out]

1/6*b*n*x^6*e*log(x) - 1/36*b*n*x^6*e + 1/6*b*x^6*e*log(c) + 1/6*a*x^6*e + 1/4*b*d*n*x^4*log(x) - 1/16*b*d*n*x
^4 + 1/4*b*d*x^4*log(c) + 1/4*a*d*x^4